import request from "@/utils/request"

export function list(obj) {
  return request({
    url: "/JobFtpDatasoutce/queryList",
    method: "get",
    params: obj
  })
}

export function del(obj) {
  return request({
    url: "/JobFtpDatasoutce/deleteById",
    method: "get",
    data: obj
  })
}

// export function statusUpdate(obj) {
//   return request({
//     url: "/jobInterfaceDatasource/delete",
//     method: "post",
//     data: obj
//   })
// }

export function add(obj) {
  return request({
    url: "/JobFtpDatasoutce/add",
    method: "post",
    data: obj
  })
}

export function update(obj) {
  return request({
    url: "/JobFtpDatasoutce/updateStatus",
    method: "get",
    data: obj
  })
}

export function edit(obj) {
  return request({
    url: "/JobFtpDatasoutce/updateById",
    method: "post",
    data: obj
  })
}
export function typeGetDataSource(obj) {
  return request({
    url: "/JobFtpDatasoutce/selectListBytype",
    method: "get",
    params: obj
  })
}
export function test(obj) {
  return request({
    url: "/JobFtpDatasoutce/test",
    method: "post",
    data: obj
  })
}

